#pragma once
#include <nice2d/widgets/control.h>

class LineControlStyle : public ControlStyle
{
    DECLARE_OBJECT(LineControlStyle)
public:
    LineControlStyle();
    ~LineControlStyle();

    sf::Color lineColor;
};

class LineControl : public Control
{
    DECLARE_OBJECT(LineControl)
public:
    LineControl();
    ~LineControl();
public:
    void setOrientation(Orientation orientation);
    Orientation getOrientation()const;

    void setLineWidth(int width);
    int getLineWidth()const;
protected:
    void onUpdateControl(float deltaTime) override;
    void onDrawControl(sf::RenderTarget &target, sf::RenderStates states) const override;
    void onStyleChanged()override;
private:
    std::unique_ptr<class LineControlData> data;
};
